package com.iqiyi.pps.epg.web.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Iterator;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: lufei
 * Date: 12-9-26
 * Time: 下午9:17
 * To change this template use File | Settings | File Templates.
 */
public class CollectionUtils {
    private static final Logger log = LoggerFactory.getLogger(CollectionUtils.class);

    public static List removeEmptyInList(List list) {
        if (list != null) {
            Iterator it = list.iterator();
            while (it.hasNext()) {
                Object obj = it.next();
                if (obj == null) {
                    it.remove();
                }
            }
        }
        return list;
    }
}
